import req from '../../utils/request';

//获取图文资讯列表
export const getNew = (id) => {
  return req.get('/api/getnew/' + id);
}

// 获取资讯评论的信息
export const getCommentList = (id, params) => {
  return req.get('/api/getcomments/' + id, { params });
}

// 添加评论的信息
export const addComment = (id, val) => {
  return req.post('/api/postcomment/' + id, { content: val });
}